package cn.zaichi.edu.excelcommon.entity;

import java.util.List;

import cn.zaichi.edu.excelcommon.constants.ImportType;
import cn.zaichi.edu.excelcommon.style.CellStyle;
import cn.zaichi.edu.excelcommon.style.TitleStyle;
import cn.zaichi.edu.excelcommon.style.impl.DefultCellStyle;
import cn.zaichi.edu.excelcommon.style.impl.DefultTitleStyle;

/**
 * excel导出参数
 */
public class BaseExportParam {

    /**
     * 导出文件名称
     */
    private String excelName;
    /**
     * 接收导出数据类型 默认 使用 bean
     */
    private int excelType=ImportType.typeBean;
    /**
     * sheet 下标
     */
    private int sheetNum=0;

    /**
     * sheet名称
     */
    private String sheetName;

    /**
     * 表头起始行下标默认0
     */
    private int titleStarRow=0;
    /**
     * 表头结束行下标默认0
     */
    private int titleEndRow=0;

    /**
     * 数据起始行 默认1
     */
    private int startRow=1;
    /**
     * 起始列 默认 0
     */
    private int startColumn=0;
    /**
     * 模板文件地址
     */
    private String tempPath;

    /**
     * 模板文件密码
     */
    private String tempPass;


    //对应 实体类
    Class<?> clz;
    //数据
    List<?> dataList;
    //表头
    List<ExportTitleEntity> titleEntityList;

    CellStyle cellStyle=new DefultCellStyle();

    TitleStyle titleStyle=new DefultTitleStyle();

    public String getExcelName() {
        return excelName;
    }

    public void setExcelName(String excelName) {
        this.excelName = excelName;
    }

    public int getExcelType() {
        return excelType;
    }

    public void setExcelType(int excelType) {
        this.excelType = excelType;
    }

    public int getSheetNum() {
        return sheetNum;
    }

    public void setSheetNum(int sheetNum) {
        this.sheetNum = sheetNum;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public int getTitleStarRow() {
        return titleStarRow;
    }

    public void setTitleStarRow(int titleStarRow) {
        this.titleStarRow = titleStarRow;
    }

    public int getTitleEndRow() {
        return titleEndRow;
    }

    public void setTitleEndRow(int titleEndRow) {
        this.titleEndRow = titleEndRow;
    }

    public int getStartRow() {
        return startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getStartColumn() {
        return startColumn;
    }

    public void setStartColumn(int startColumn) {
        this.startColumn = startColumn;
    }

    public String getTempPath() {
        return tempPath;
    }

    public void setTempPath(String tempPath) {
        this.tempPath = tempPath;
    }

    public String getTempPass() {
        return tempPass;
    }

    public void setTempPass(String tempPass) {
        this.tempPass = tempPass;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }

    public List<?> getDataList() {
        return dataList;
    }

    public void setDataList(List<?> dataList) {
        this.dataList = dataList;
    }

    public List<ExportTitleEntity> getTitleEntityList() {
        return titleEntityList;
    }

    public void setTitleEntityList(List<ExportTitleEntity> titleEntityList) {
        this.titleEntityList = titleEntityList;
    }

    public CellStyle getCellStyle() {
        return cellStyle;
    }

    public void setCellStyle(CellStyle cellStyle) {
        this.cellStyle = cellStyle;
    }

    public TitleStyle getTitleStyle() {
        return titleStyle;
    }

    public void setTitleStyle(TitleStyle titleStyle) {
        this.titleStyle = titleStyle;
    }
}
